package com.hfut.jpoa.service;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.dto.BusinessInfoDTO;
import com.hfut.jpoa.model.BusinessInfo;
import com.hfut.jpoa.service.exception.BusinessInfoException;
import com.hfut.jpoa.service.exception.SysparaException;

/**
 * 业务信息模块
 * 
 * @author Administrator
 * 
 */
public interface BusinessInfoService
{
	/**
	 * 
	 * 根据条件查询页面列表
	 * 
	 * @param condition
	 * @return
	 * @throws SysparaException
	 */
	public ResultDto<BusinessInfo> queryInfoForPage(BusinessInfoDTO condition)
	        throws BusinessInfoException;

	/**
	 * 
	 * 编辑记录
	 * 
	 * @param record
	 * @throws BusinessInfoException
	 */
	public void update(BusinessInfo record) throws BusinessInfoException;

	/**
	 * 查询详情
	 * 
	 * @param syspara
	 * @return
	 * @throws SysparaException
	 */
	public BusinessInfo findInfo(BusinessInfo condition) throws BusinessInfoException;

	/**
	 * 验证编码是否已经被使用
	 * 
	 * @param condition
	 * @return 存在返回true，失败返回false
	 * @throws BusinessInfoException
	 */
	public boolean codeValidator(BusinessInfo condition)
	        throws BusinessInfoException;

	/**
	 * 查询列表
	 * 
	 * @param config
	 * @return
	 * @throws SysparaException
	 */
	public List<BusinessInfo> queryList(BusinessInfo condition)
	        throws BusinessInfoException;

	/**
	 * 保存报修信息
	 * 
	 * @param BusinessInfo
	 * @throws SysparaException
	 */
	public void saveBusinessInfo(BusinessInfo BusinessInfo)
	        throws BusinessInfoException;

	/**
	 * 删除
	 * 
	 * @param BusinessInfo
	 */
	public int delete(BusinessInfo BusinessInfo) throws BusinessInfoException;

}
